package com.tangmu.rabbits.adapter.home;

import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.tangmu.rabbits.R;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2018/5/3.
 */

public class BrandIflashbuyItemAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {

    private Context mContext;
    private LayoutInflater inflater;
    private List<Integer> datas = new ArrayList<>();

    public BrandIflashbuyItemAdapter(Context mContext, List<Integer> datas) {
        this.mContext = mContext;
        this.datas = datas;
        inflater = LayoutInflater.from(mContext);
    }

    @NonNull
    @Override
    public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        return new BranItemViewHolder(inflater.inflate(R.layout.rv_item_item_brand_iflash_, parent, false));
    }

    @Override
    public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return datas.size();
    }

    class BranItemViewHolder extends RecyclerView.ViewHolder {

        public BranItemViewHolder(View itemView) {
            super(itemView);
        }
    }
}
